package com.drone.drone_server.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("fire_video")
public class FireVideo {
    @TableId(value = "fire_id", type = IdType.AUTO)
    private Integer fireId;

    @TableField("video_path")
    private String videoPath;

    @TableField("fire_level")
    private FireLevel fireLevel;

    @TableField("latitude")
    private Float latitude;

    @TableField("longitude")
    private Float longitude;

    @TableField("record_time")
    private Date recordTime;

    @Getter
    public enum FireLevel {
        unprocessed("unprocessed"),
        misjudgment("misjudgment"),
        insignificant("insignificant"),
        security_required("security_required"),
        leader_approval("leader_approval");

        @EnumValue
        private final String value;

        FireLevel(String value) {
            this.value = value;
        }

    }
}